package org.performancetracker.jdbc4;

import java.sql.CallableStatement;
import java.sql.Connection;

/**
 * @author: jaronschut
 */

public class CallableMonitoringStatement extends AbstractCallableMonitoringStatement implements CallableStatement {

    private final CallableStatement realStatement;
    private final Connection realConnection;

    CallableMonitoringStatement(CallableStatement statement, Connection connection) {
        realStatement = statement;
        realConnection = connection;
    }

    /**
     * To override in any subclass.
     *
     * @return
     */
    protected CallableStatement getRealStatement() {
        return realStatement;
    }

    /**
     * To override in any subclass.
     *
     * @return
     */
    protected Connection getRealConnection() {
        return realConnection;
    }
}
